package com.groupfifteen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sys_teacher")
public class SysTeacherEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)

    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 教师名字
     */
    private String teacherName;

    /**
     * 学院
     */
    private String institute;

    /**
     * 性别
     */
    private String sex;

    /**
     * 电话
     */
    private String tel;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String pwd;

    /**
     * 身份证
     */
    private String cardId;

    /**
     * 职称
     */
    private String type;

    /**
     * 角色
     */
    private String role;

}
